package com.neusoft.liduan.d0914;

public class Employee {
	/*
	 * 2，
	 * 定义并测试一个代码员工的Employee类。员工属性包括”编号”、”姓名”、”基本薪水”、”薪水增长率”，请计算编号为110的员工Leo在2015年的年薪
	 * ，注意Leo的月薪为6000，薪水增长率为20%。再同时预算Leo在2016的年薪。
	 */
	private String no;
	private String name;
	private double salary;
	private double increment = 0.2;
	
	public Employee() {
		
	}

	public Employee(String no, String name, double salary) {
		this.no = no;
		this.name = name;
		this.salary = salary;
	}
	
	public double salary12() {
		return salary * 12;
	}

	public String getNo() {
		return no;
	}

	public void setNo(String no) {
		this.no = no;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getSalary() {
		return salary;
	}

	public void setSalary(double salary) {
		this.salary = salary;
	}

	public double getIncrement() {
		return increment;
	}

	@Override
	public String toString() {
		return "Employee [no=" + no + ", name=" + name + ", salary=" + salary + ", increment=" + increment + "]";
	}
	
}
